<?php $this->load->view('admin/public/head.html', array('css' => array(
'/assets/admin/css/admin/common.css',
))); ?>

<!-- Content Wrapper. Contains page content -->
<section class="content-wrapper" ng-controller="admin-money-purchaser-check">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            账务管理
            <small>商户结算管理模块</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台首页</a></li>
            <li class="active">申请对账</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content p">

        <div class="row">
            <div class="col-md-12">
                <!-- Horizontal Form -->
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">核对对账单</h3>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <!-- form start -->
                            <form class="form-horizontal">
                                <div class="box-body">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">时间区间</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static" ng-bind="year + '年' + month + '月'"></p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">交易总额</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static" style="color:green;"><?=$info['total']?></p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">扣除费用</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static" style="color:green;"><?='-' . money_format('%i', ($info['refund'] + $info['delivery']) / 100)?></p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">商家应得</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static" style="color:red;"> <?='+' . $info['amount']?></p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">银行名称</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static"><?=$bank['bankname']?></p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">开户银行（支行）</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static" style="color:red;"><?=$bank['kaihuhang']?></p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">开户人名称</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static"><?=$bank['username']?></p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">银行卡账号</label>
                                        <div class="col-sm-9">
                                            <p class="form-control-static"><?=$bank['account']?></p>
                                        </div>
                                    </div>
                                </div>
                                <!-- /.box-body -->

                                <div class="box-footer">
                                    <a href="/money/purchaser/index" class="btn btn-default">返回对账</a>
                                    <button type="submit" class="btn btn-info pull-right" style="background: #00a65a; border: none;" ng-click="submit()">提交对账申请</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <!-- /.box -->
            </div>
        </div>
    </section>
    <!-- /.modal -->

</section>

<!-- /.content-wrapper -->
<?php $this->load->view('admin/public/foot.html', array(
'js' => array(
'/assets/admin/js/money/purchaser/check.js',
)
)); ?>
